import { authLogin, authRegister } from "@/apis/authApi";
import { defineStore } from "pinia";

export default defineStore("auth", () => {
  async function login(data: LoginModel) {
    return await authLogin(data);
  }

  async function register(data: RegisterModel) {
    await authRegister(data);
  }

  return { login, register };
});
